Release 10.1A: OpenEdge Development:
Progress 4GL Reference
FIND-FIRST( ) method
Gets a single record. This method lets a user get the first record that satisfies the predicate expression.
Return type: LOGICAL Applies to: Buffer object handle
predicate-expressionA character expression that evaluates to the following syntax:
Once evaluated,
predicate-expressioncan contain only constants and unabbreviated references to fields from the buffer.The
predicate-expressionitself can be built using a concatenation of character expressions.lockmodeAn integer expression evaluating to one of the following constants: SHARE-LOCK, EXCLUSIVE-LOCK, or NO-LOCK. You can assign any of these constants to an integer variable. For example, mylock = NO-LOCK.
The default is SHARE-LOCK.
wait-modeAn integer expression evaluating to one of the following: NO-WAIT, 0, or the Unknown value (
?). You can assign NO-WAIT to an integer variable. For example, mywait = NO-WAIT. The default is to wait.The following shows some examples of FIND-FIRST method:
If FIND-FIRST succeeds, it returns TRUE, otherwise it returns FALSE.
If FIND-FIRST fails, it does not raise an error but displays a message. You can suppress this message by using NO-ERROR on the statement containing the method.
See also
FIND-BY-ROWID( ) method, FIND-CURRENT( ) method, FIND-LAST( ) method, FIND-UNIQUE( ) method, FIND statement
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |